package com.xw.childhealth.service.impl;

import com.xw.childhealth.dao.ChildrenDxzskDao;
import com.xw.childhealth.entity.ChildrenDxzsk;
import com.xw.childhealth.service.ChildrenDxzskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 2019-11-14 14:49
 * @Version: 1.0
 */
@Service
public class ChildrenDxzskServiceImpl implements ChildrenDxzskService {

    @Autowired
    private ChildrenDxzskDao childrenDxzskDao;

    @Override
    public List<ChildrenDxzsk> findByParentIdEquals(Integer id) {
        return childrenDxzskDao.findByParentIdEquals(id);
    }

    @Override
    public ChildrenDxzsk findByIdEquals(Integer id) {
        return childrenDxzskDao.findByIdEquals(id);
    }

    @Override
    public void delRecord(Integer id) {
        childrenDxzskDao.deleteById(id);
    }

    @Override
    public ChildrenDxzsk save(ChildrenDxzsk childrenDxzsk) {
        return childrenDxzskDao.save(childrenDxzsk);
    }
}
